package com.xhwl.centiotdata.service.cent;

import com.xhwl.common.pojo.ResultJson;
import com.xhwl.common.pojo.cent.alarmhost.DefAreaNoticeRecord;
import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author zhouyongzhou
 * @date 2023/04/28  18:19
 */
@FeignClient(value = "cent-alarm-host")
public interface IAlarmHostCentService{
    /**
     * 添加警告事件
     * @param record
     * @return
     */
    @RequestLine("POST /notification/addAlarmEvent")
    ResultJson addAlarmNotifyRecord(@RequestBody DefAreaNoticeRecord record);

    /**
     * 校验是否当前记录存在
     * @param record
     * @return
     */
    @RequestLine("POST /notification/checkEventRecordExist")
    ResultJson checkEventRecordExist(@RequestBody DefAreaNoticeRecord record);
}
